package org.example.myleet.p1365;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        //examples
//        int[] a = new int[]{8,1,2,2,3};
//        int[] b = new int[]{4,0,1,1,3};

        int[] a = new int[]{6,5,4,8};
        int[] b = new int[]{2,1,0,3};

//        int[] a = new int[]{7,7,7,7};
//        int[] b = new int[]{0,0,0,0};

        int[] answer1 = solution.smallerNumbersThanCurrent(a);
        for (int i=0; i<b.length; i++) {
            if (b[i] != answer1[i]) {
                throw new RuntimeException("answer does not match");
            }
        }
        System.out.println("finish");
    }
}
